<!--
 * @Author: HeAo
 * @Date: 2021-11-24 12:21:10
 * @LastEditTime: 2021-11-24 20:49:59
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\test.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <button>1</button>
  <button>2</button>
  <button>3</button>
  <button>4</button>
  <script>
    let btns = document.querySelectorAll('button')
    console.log(NodeList.prototype);
    btns.forEach((btn) => {
      console.log(btn);
      console.log('tangbiao');
    })
    console.log('haohonghui');

  </script>
</body>

</html>